<!--
  ~ Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.de)
  ~
  ~ This program is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU General Public License as published by the Free
  ~ Software Foundation; either version 3 of the License, or (at your option)
  ~ any later version.
  ~ This program is distributed in the hope that it will be useful, but WITHOUT
  ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  ~ more details.
  ~
  ~ You should have received a copy of the GNU General Public License along
  ~ with this program; if not, see http://www.gnu.org/licenses/
  -->

<html>
<head>
    <title>Sentinel Toolbox Help - Export Color Palette</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="../style.css">
</head>

<body>
<table class="header">
    <tr class="header">
        <td class="header">&nbsp;
            Export Color Palette</td>
        
    <td class="header" align="right"><a href="../general/overview/SnapOverview.html"><img src="../images/snap_header.jpg" border="0"></a></td>
    </tr>
</table>

<h3>Exporting a Color Palette Table</h3>
To export the <i>Color Palette Table</i> click the menu item <b>Color Palette as File</b> in the File/Export/Other Menu.
The <i>Color Palette Table</i> used by the current image view can
be exported to a *.txt or a *.csv file.<br>
When exporting the <i>colour palette table</i> of an RGB images the red channel is used (virtual_red-palette.csv).<br>

<h4>File Format</h4>
The exported file is separated in two sections. The <i>Header Sections</i> contains general informations about the
exported colour palette. The <i>Data Section</i> contains the <i>Color Palette Table</i>.
When exporting the colour palette, the variables in curly braces are replaced by their current value.
<p>
    <b>Header Section</b><br>
    # Band: {BAND_NAME}<br>
    # Sample unit: {SAMPLE_UNIT}<br>
    # Minimum sample value: {MIN_VALUE}<br>
    # Maximum sample value: {MAX_VALUE}<br>
    # Number of colors: {COLOR_COUNT}
</p>
<br>

<p>
    <b>Data Section</b><br>
    ID;Sample;RGB<br>
    {COLOR_INDEX};{SAMPLE_VALUE};{RED}, {GREEN}, {BLUE}
</p>


<hr>
</body>
</html>